@extends('admin.layout.homeindex')

@section('content')
<!--//////////////////////////////////////////////////-->
<!--///////////////////  登录注册页  ///////////////////-->
<!--//////////////////////////////////////////////////-->
<div id="page-content" class="single-page">
	<div class="container">
		<div class="row">
			<div class="col-lg-12">
				<ul class="breadcrumb">
					<li><a href="{{url('/')}}">首页</a></li>
					<li><a href="{{url('/account')}}">账户</a></li>
				</ul>
			</div>
		</div>
		<div class="row">
			@if(session('success'))
			<div class="col-md-6 col-md-offset-3">
				<div class="alert alert-info alert-dismissable">
		            <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
					{{session('success')}}
		        </div>
		    </div>
			@endif
			@if(session('error'))
                <div class="alert alert-danger alert-dismissable col-md-6 col-md-offset-3">
                    <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                    {{session('error')}}
                </div>
            @endif
			<div class="col-md-6">
				<div class="heading"><h2>登录</h2></div>
				<form name="form1" id="ff1" method="get" action="{{url('/hologin')}}">
					<div class="form-group">
						<input type="text" class="form-control" placeholder="用户名 :" name="uname" required>
					</div>
					<div class="form-group">
						<input type="password" class="form-control" placeholder="密码 :" name="upass" required>
					</div>
					<button type="submit" class="btn btn-1" name="login" id="login">登录</button>
					<a href="#">忘记密码了吗 ？</a>
				</form>
			</div>
			<div class="col-md-6">
				<div class="heading"><h2>没有账户 ？ 注册一个帐户。</h2></div>
				<form name="form2" id="ff2" method="post" action="{{url('/doaccount')}}">
					<!-- 验证提示信息开始 -->
					@if (count($errors) > 0)
	                    <div class="alert alert-danger">
	                        <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
	                        <ul>
	                            @foreach ($errors->all() as $error)
	                                <li>{{ $error }}</li>
	                            @endforeach
	                        </ul>
	                    </div>
	                @endif
	                <!-- 验证提示信息结束 -->
					<div class="form-group">
						<input type="text" class="form-control" placeholder="用户名 :" name="uname" id="firstname" required>
					</div>
					<div class="form-group">
						<input type="password" class="form-control" placeholder="密码 :" name="upass" id="password" required>
					</div>
					<div class="form-group">
						<input type="password" class="form-control" placeholder="确认密码 :" name="repass" id="repassword" required>
					</div>
					<div class="form-group">
						<input type="text" class="form-control" placeholder="邮箱 :" name="email" id="email" required>
					</div>
					<div class="form-group">
						<input type="text" class="form-control" placeholder="手机 :" name="phone" id="phone" required>
					</div>
					{{ csrf_field() }}
					<button type="submit" class="btn btn-1">注册</button>
				</form>
			</div>
		</div>
	</div>
</div>
@endsection('content')